require File.dirname(__FILE__) +"/../lib/rrd-rb"

interval = 10
rrd_file = 'random_graph.rrd'

my_rrd = RRD.new(rrd_file)
my_rrd.create(interval)


while true
  random_number = rand(99) + 1
  my_rrd.update(random_number)
  my_rrd.graph(60)
  sleep(interval)
end
